﻿using System;
using System.Runtime.Serialization;

namespace ElectronicCommerce.Framework.Payment.Contract.DataContract
{
    /// <summary>
    /// 退款结果类型
    /// </summary>
    [Serializable]
    [DataContract]
    public enum RefundResultType
    {
        /// <summary>
        /// 成功
        /// </summary>
        Success = 0,

        /// <summary>
        /// 签名无效
        /// </summary>
        SignFail = 1,

        /// <summary>
        /// 尚未支付过
        /// </summary>
        NoPaid = 2,

        /// <summary>
        /// 退款金额>订单余额
        /// </summary>
        SOAmountInsufficient = 3,

        /// <summary>
        /// 对同一订单不能频繁退款(现在系统限定10分钟之内对同一订单只能退一次)
        /// </summary>
        FrequentRefund = 4,

        /// <summary>
        /// 失败
        /// </summary>
        Fail = 999
    }
}
